﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using Core.DataAccess.IRepositories;

namespace Core.DataAccess.Repositories
{
    [Export(typeof(IUserProviderRepository))]
    public class UserProviderRepository : IUserProviderRepository
    {
        public void CreateUserProvider(UserProvider up)
        {
            using (MXHEntities context = new MXHEntities())
            {
                context.UserProviders.AddObject(up);
                context.SaveChanges();
            }
        }
    }
}
